-- GENERATED SPELL FOR [Krosh Firehand] --


function spell0_18832(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(33061,pUnit)
pUnit:RegisterEvent('Sorts_18832', 6316, 1)
end

function spell1_18832(pUnit, Event) --@Greater Fireball,n/a--
pUnit:FullCastSpellOnTarget(33051,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18832', 3000, 1)
end

function spell2_18832(pUnit, Event) --@Spell Shield,Self--
pUnit:FullCastSpellOnTarget(33054,pUnit)
pUnit:RegisterEvent('Sorts_18832', 30000, 1)
end

function Sorts_18832(pUnit, Event)
local choix_sorts_18832 = math.random(0, 2)
if choix_sorts_18832 == 0 then
pUnit:RegisterEvent('spell0_18832', 1, 1)
end
if choix_sorts_18832 == 1 then
pUnit:RegisterEvent('spell1_18832', 1, 1)
end
if choix_sorts_18832 == 2 then
pUnit:RegisterEvent('spell2_18832', 1, 1)
end
end

function mob18832_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18832', math.random(1500, 3000), 1)
end

function mob18832_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18832_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18832_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18832, 1, 'mob18832_Action')
RegisterUnitEvent(18832, 2, 'mob18832_Leave')
RegisterUnitEvent(18832, 3, 'mob18832_Kill')
RegisterUnitEvent(18832, 4, 'mob18832_Die')
